<?php
// +----------------------------------------------------------------------
// | 杭州十禾信息科技有限公司
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2015 http://www.shelpe.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: LeePuman <ysyzlsm@163.com>
// +----------------------------------------------------------------------

/**
 * 表单类挂件
 */
class ShowCampaignsWidget  extends  Widget { 

	protected $template = 'think';

    public function  render($data){ 
		$me = session('me');
        $campaignMdl = D('Campaign');
        $campaigns = $campaignMdl->getCampaigns($me['user_id'] , false);
        $data = array(
            'campaigns' => $campaigns
        );
        $content = $this->renderFile('campaigns',$data);
        return $content;  

    } 

} 

?>